<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../../tpl/head.jsp"%>
<link rel="stylesheet" href="statics/css/secondarytitle.css">
<link rel="stylesheet" href="statics/css/Money/tpl/newupgeneral.css">
<div class="layui-fluid">
    <div class="layui-card">
        <div class="header">
            <img class="img " src="statics/images/titheader.svg">
            <span>增加，修改直接费用</span>
        </div>
        <div class="layui-card-body">
            <form class="layui-form" action="" lay-filter="editor-form" id="editor-form">
                <div class="layui-form-item zdy-item-css">
                    <div class="layui-inline">
                        <label class="layui-form-label xb_required">登记编号</label>
                        <div class="layui-input-inline">
                            <input type="text" name="code" id="code" readonly="readonly" autocomplete="off" class="layui-input" lay-verify="required">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label xb_required">费用类型</label>
                        <div class="layui-input-inline">
                            <input type="text" name="costType" id="costType" readonly="readonly" autocomplete="off" class="layui-input" lay-verify="required">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item zdy-item-css">
                    <div class="layui-inline">
                        <label class="layui-form-label xb_required">币种</label>
                        <div class="layui-input-inline">
                            <select lay-search name="currencyCode" id="currencyCode" lay-filter="currencyCode" lay-verify="required">
                                <option value=""></option>
                            </select>
                            <input type="hidden" name="currencyName" id="currency">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">人民币汇率</label>
                        <div class="layui-input-inline">
                            <input type="text" name="rmbRate" id="rmbRate" autocomplete="off" class="layui-input" lay-verify="number">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item zdy-item-css">
                    <div class="layui-inline">
                        <label class="layui-form-label">美金汇率</label>
                        <div class="layui-input-inline">
                            <input type="text" name="usdRate" id="usdRate" autocomplete="off" class="layui-input" lay-verify="number">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label xb_required">收款单位</label>
                        <div class="layui-input-inline">
                            <input type="text" id="inputPayeeName" name="inputPayeeName" class="layui-input" style="position:absolute;z-index:2;width:80%;" autocomplete="off">
                            <select type="text" name="payeeCode" id="payeeCode" lay-filter="payeeFilter" autocomplete="off" class="layui-select" lay-search>
                                <option value=""></option>
                            </select>
                        </div>
                    </div>
                </div>

                <div class="layui-form-item zdy-item-css">
                    <div class="layui-inline">
                        <label class="layui-form-label xb_required">银行名称</label>
                        <div class="layui-input-inline">
                            <div class="layui-input-inline">
                                <input type="text" id="inputBankName" name="inputBankName" class="layui-input" style="position:absolute;z-index:2;width:80%;" autocomplete="off">
                                <select type="text" name="bankName" id="bankName" lay-filter="bankNameFilter" autocomplete="off" class="layui-select" lay-search>
                                    <option value=""></option>
                                </select>
                            </div>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label xb_required">银行账号</label>
                        <div class="layui-input-inline">
                            <div class="layui-input-inline">
                                <input type="text" id="inputBankAccount" name="inputBankAccount" class="layui-input" style="position:absolute;z-index:2;width:80%;" autocomplete="off">
                                <select type="text" name="bankAccount" id="bankAccount" lay-filter="bankAccountFilter" autocomplete="off" class="layui-select" lay-search>
                                    <option value=""></option>
                                </select>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item zdy-item-css">
                    <div class="layui-inline">
                        <label class="layui-form-label">账号名称</label>
                        <div class="layui-input-inline">
                            <input type="text" name="accountName" id="accountName" autocomplete="off" class="layui-input">
                        </div>
                    </div>

                    <div class="layui-inline">
                        <label class="layui-form-label">费用总金额</label>
                        <div class="layui-input-inline">
                            <input type="text" name="totalAmount" id="totalAmount" readonly autocomplete="off" class="layui-input">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item zdy-item-css">
                    <div class="layui-inline">
                        <label class="layui-form-label xb_required">制单公司</label>
                        <div class="layui-input-inline">
                            <select lay-search name="billCompanyCode" id="billCompanyCode" lay-filter="billCompanyCode" lay-verify="required">
                                <option value=""></option>
                            </select>
                            <input type="hidden" name="billCompanyName" id="billCompanyName">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label xb_required">操作员</label>
                        <div class="layui-input-inline">
                            <input type="text" name="operatorName" id="operatorName" autocomplete="off" class="layui-input" lay-verify="required">

                        </div>
                    </div>
                </div>
                <div class="layui-form-item zdy-item-css">
                    <div class="layui-inline">
                        <label class="layui-form-label">登记日期</label>
                        <div class="layui-input-inline">
                            <div class="layui-input-inline">
                                <input type="text" id="createTime" name="createTime" lay-verify="required|date" autocomplete="off" class="layui-input starttime" placeholder="年 - 月 - 日">
                            </div>
                        </div>
                    </div>

                    <div class="layui-inline">
                        <label class="layui-form-label">备注</label>
                        <div class="layui-input-inline">
                            <textarea name="description" placeholder="" id="description" class="layui-textarea"></textarea>
                        </div>
                    </div>
                </div>
                <div class="layui-row">
                    <div class="layui-col-xs12">
                        <div class="layui-tab layui-tab-card">
                            <ul class="layui-tab-title">
                                <li class="layui-this">费用明细</li>
                                <li class="">附件</li>
                                <li class="">日志</li>
                            </ul>
                            <div class="layui-tab-content">
                                <div class="layui-tab-item layui-show">
                                    <table class="layui-table" id="maininformation" lay-filter="maininformationtable"></table>
                                </div>
                                <div class="layui-tab-item">
                                    <table class="layui-table" id="attachment" lay-filter="attachmenttable"></table>
                                </div>
                                <div class="layui-tab-item"><table class="layui-table" id="otherwarehouselog" lay-filter="logtable"></table></div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="padding text-right">
                    <button type="button" class="layui-btn" lay-submit="" lay-filter="form-element">保存</button>
                    <button type="button" class="layui-btn" lay-submit="" lay-filter="form-element2">提交审批</button>
                </div>
            </form>
        </div>
    </div>
</div>
<style type="text/css">
    .layui-anim-upbit {
        height: 200px;
        animation-name: layui-upbit;
        top: auto;
        bottom: 42px;
    }
</style>
<script type="text/html" id="maininformationtoolbar">
    <a class="layui-btn" lay-event="importinvoice">导入发票</a>
    <a class="layui-btn" lay-event="importcontract">导入合同</a>
    <a class="layui-btn" lay-event="importResourceSamples">导入资源样品</a>
    <a class="layui-btn layui-btn-danger" lay-event="del">删除</a>
</script>

<script type="text/html" id="costofnameselect">
    <select name="costofnameselect" class="costNameClass" id="costName_{{d.tempId}}" lay-filter="costofnameselect_filter" lay-search>
        <option value= ""> </option>
    </select>
</script>

<script type="text/html" id="accountingdepartmentselect">
    <select name="accountingdepartmentselect" class="deptClass" id="dept_{{d.tempId}}" lay-filter="accountingdepartmentselect_filter" lay-search>
        <option value=" "> </option>
    </select>
</script>

<script type="text/html" id="accountingpersonnelselect">
    <select name="accountingpersonnelselect" class="accClass" id="acc_{{d.tempId}}" lay-filter="accountingpersonnelselect_filter" lay-search>
        <option value=" "> </option>
    </select>
</script>




<div class="layui-upload" id="attachmentupload" style="display: none;padding: 10px">
    <a type="button" class="layui-btn layui-btn-normal" id="uploadfile">选择文件</a>
    <div class="layui-upload-list">
        <table class="layui-table">
            <thead>
            <tr><th>文件名</th>
                <th>大小</th>
                <th>状态</th>
                <th>操作</th>
            </tr></thead>
            <tbody id="uploadlist"></tbody>
        </table>
    </div>
    <a type="button" class="layui-btn" id="testListAction">开始上传</a>
</div>

<script type="text/html" id="attachmenttoolbar">
    <a class="layui-btn" data-type="getCheckData" lay-event="uploadfile">上传</a>
</script>
<script type="text/html" id="attachmenteditor">
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="download">下载</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
</script>
<%@ include file="../../tpl/foot.jsp"%>
<script src="statics/js/bignumber.js"></script>
<script src="statics/js/Money/tpl/registerdirectchargesUpdate.js"></script>